﻿using System.Collections.Generic;

namespace Sail.Collections
{
    /// <summary>
    /// 分页接口
    /// </summary>
    public interface IPageOfItems<out T> : IEnumerable<T>
    {
        /// <summary>
        /// 页码
        /// </summary>
        int PageNumber { get; set; }

        /// <summary>
        /// 页大小
        /// </summary>
        int PageSize { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        int TotalItemCount { get; set; }

        /// <summary>
        /// 页数
        /// </summary>
        int TotalPageCount { get; }

        /// <summary>
        /// 起开位置
        /// </summary>
        int StartPosition { get; }

        /// <summary>
        /// 结束位置
        /// </summary>
        int EndPosition { get; }
    }
}